package com.k2data.k2app.common;

import com.k2data.k2app.constant.ResponseCode;

/**
 * @author lidong9144@163.com 17-3-28.
 */
public class ResponseConstant {
    //general 一般错误
    public static final Integer GENERAL = ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "000");
    //没有找到id的值
    public static final Integer ID_NOT_FOUND = ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "010");
    //时间范围内任务已经执行完毕
    public static final Integer TASK_TIME_OVER = ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "011");
    //url parse error
    public static final Integer URL_PARSE_ERROR_VALUE = ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "012");
    //task has exist
    public static final Integer TASK_IS_EXIST= ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "013");
    //task is running
    public static final Integer TASK_IS_RUNNING= ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "014");
    //任务的模型不可用
    public static final Integer TASK_UNUSEFUL = ResponseCode.getCode(ResponseCode.TYPE_CLIENT_ERROR, ResponseCode.K2ALPHA_HEALTH, "015");

    public static final String MSG_TASK_ID_NOT_FOUND = "Task id not found.";
    public static final String MSG_TASK_IS_EXIST = "名称,模型,设备,频率相同的任务已经存在";
    public static final String MSG_MODEL_ID_NOT_FOUND = "Model id not found.";
    public static final String TASK_UNUSEFUL_ERROR = "模型不可用";
    public static final String MSG_JOB_ID_NOT_FOUND = "Job id not found.";
    public static final String PARSE_ERROR = "time parse error!";
    public static final String TIME_OVER_ERROR = "该任务已到期!";
    public static final String TIME_BEFORE_ERROR = "不在有效时间范围之内!";
    public static final String URL_OVER_ERROR = "访问地址出错";
    public static final String URL_PARSE_ERROR = "pas返回结果转换时出错";
}
